﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace BSCore
{
    public class TextureSheet
    {
        public int ID { get; set; }

        public Texture2D Texture { get; set; }

        public string TextureName { get; set; }

        public ContentManager ContentManager { get; set; }

        public bool Load(GraphicsDevice graphicsDevice, ContentManager ContentManager)
        {
            try
            {
                Texture = ContentManager.Load<Texture2D>(TextureName);
                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }

    }
}
